package com.yinhe.music.yhmusic.personal.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yinhe.music.yhmusic.R;
import com.yinhe.music.yhmusic.personal.model.VipListInfo;

/**
 * Created by 何晓华 on 2017/9/20.
 */

public class SnowIconAdapter extends BaseQuickAdapter<VipListInfo, BaseViewHolder> {
    public SnowIconAdapter() {
        super(R.layout.vip_list_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, VipListInfo item) {
        helper.setText(R.id.number, item.getSnowGold()+"雪币")
                .setText(R.id.price, item.getPrice() + "元")
                .setText(R.id.open, "充值");
        helper.addOnClickListener(R.id.open);
    }
}
